@@ -177,9 +177,6 @@ def eqpt_result(request):  | 
            ||
| 177 | 177 | 
                @logit  | 
            
| 178 | 178 | 
                def screen_eqpt_result(request):  | 
            
| 179 | 179 | 
                     point_id = request.POST.get('point_id', '')
               | 
            
| 180 | 
                -    kw = request.POST.get('kw', '')
               | 
            |
| 181 | 
                -    page = request.POST.get('page', 1)
               | 
            |
| 182 | 
                -    num = request.POST.get('num', 20)
               | 
            |
| 183 | 180 | 
                 | 
            
| 184 | 181 | 
                try:  | 
            
| 185 | 182 | 
                point = IsolationPointInfo.objects.get(point_id=point_id, status=True)  | 
            
                @@ -205,8 +202,6 @@ def screen_eqpt_result(request):  | 
            ||
| 205 | 202 | 
                has_upload_temperature_num = len(logs)  | 
            
| 206 | 203 | 
                fever_num = len([1 for temperature in logs.values() if temperature > settings.FEVER_TEMPERATURE])  | 
            
| 207 | 204 | 
                 | 
            
| 208 | 
                - if kw:  | 
            |
| 209 | 
                - eqpts = eqpts.filter(Q(name__icontains=kw) | Q(phone__icontains=kw))  | 
            |
| 210 | 205 | 
                     eqpts = [{**eqpt.screen_data, **{
               | 
            
| 211 | 206 | 
                'has_upload': eqpt.macid in logs,  | 
            
| 212 | 207 | 
                'temperature': logs.get(eqpt.macid, 0),  | 
            
                @@ -216,7 +211,6 @@ def screen_eqpt_result(request):  | 
            ||
| 216 | 211 | 
                         'room': eqpt.get('room'),
               | 
            
| 217 | 212 | 
                         'content': eqpt.get('remark'),
               | 
            
| 218 | 213 | 
                     } for eqpt in eqpts if eqpt.get('remark')]
               | 
            
| 219 | 
                - eqpts, left = pagination(eqpts, page, num)  | 
            |
| 220 | 214 | 
                 | 
            
| 221 | 215 | 
                # var name: String = ""  | 
            
| 222 | 216 | 
                # var room: String = ""  | 
            
                @@ -242,7 +236,6 @@ def screen_eqpt_result(request):  | 
            ||
| 242 | 236 | 
                 | 
            
| 243 | 237 | 
                     return response(data={
               | 
            
| 244 | 238 | 
                'eqpts': eqpts,  | 
            
| 245 | 
                - 'left': left,  | 
            |
| 246 | 239 | 
                'reminds': reminds,  | 
            
| 247 | 240 | 
                'total_active_eqpt_num': total_active_eqpt_num,  | 
            
| 248 | 241 | 
                'has_upload_temperature_num': has_upload_temperature_num,  | 
            
                @@ -234,7 +234,7 @@ class ThermometerEquipmentInfo(BaseModelMixin):  | 
            ||
| 234 | 234 | 
                def screen_data(self):  | 
            
| 235 | 235 | 
                         return {
               | 
            
| 236 | 236 | 
                'remark': self.remark,  | 
            
| 237 | 
                - 'last_submit_at': tc.local_string(utc_dt=self.last_submit_at),  | 
            |
| 237 | 
                + 'last_submit_at': tc.local_string(utc_dt=self.last_submit_at, format='%m-%d %H:%M'),  | 
            |
| 238 | 238 | 
                }  | 
            
| 239 | 239 | 
                 | 
            
| 240 | 240 | 
                 | 
            
                @@ -1,4 +1,5 @@  | 
            ||
| 1 | 1 | 
                StatusCode==1.0.0  | 
            
| 2 | 
                +TimeConvert==1.6.0  | 
            |
| 2 | 3 | 
                furl==2.1.2  | 
            
| 3 | 4 | 
                jsonfield==3.1.0  | 
            
| 4 | 5 | 
                mysqlclient==2.0.3  |